import axios from "~/axios";


export function login(username,password){
    // post url 后面参数为body对象参数
    return axios.post('/admin/login',{
        username,
        password
    })
}
// http://ceshi13.dishait.cn/admin/logout
export function loginOut(){
    return axios.post('/admin/logout')
}

// http://ceshi13.dishait.cn/admin/getinfo
export function getinfo(){
    return axios.post('/admin/getinfo')
}




